package wangxiaotao.converter;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import wangxiaotao.bean.vo.RoomTypeVO;
import wangxiaotao.entity.RoomType;

@Mapper(componentModel = "spring")
public interface RoomTypeConverter {

    @Mappings({
            @Mapping(source = "roomBed.desc",target = "roomBed")
    })
    RoomTypeVO toRoomTypeVO(RoomType roomType);

}
